#ifndef _PWM_H
#define _PWM_H
#include "platform.h"
#include "Common.h"
typedef enum{
    PWM_ON,
    PWM_Off,
}PwmState;

extern void PWM_Init(void);
extern void PWM_OFF(void);
extern void PWM_Start(uint32_t CCR);

extern void PWM_CH1H_Ctrl(PwmState eState,uint32_t CCR);
extern void PWM_CH1N_Ctrl(PwmState eState,uint32_t CCR);
extern void PWM_CH1N_ON(void);
extern void PWM_CH1_OFF(void);

extern void PWM_CH2H_Ctrl(PwmState eState,uint32_t CCR);
extern void PWM_CH2N_Ctrl(PwmState eState,uint32_t CCR);
extern void PWM_CH2N_ON(void);
extern void PWM_CH2_OFF(void);

extern void PWM_CH3H_Ctrl(PwmState eState,uint32_t CCR);
extern void PWM_CH3N_Ctrl(PwmState eState,uint32_t CCR);
extern void PWM_CH3N_ON(void);
extern void PWM_CH3_OFF(void);

extern uint16_t PWMSetDutyCycle(uint8_t DutyCycle);
#endif
